home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 119
/
(Vol 119) Nov 09 2010.iso
/
Games
/
agent_platformer.swf
/
scripts
/
DefineSprite_117
/
frame_25
/
PlaceObject2_115_89
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2010-11-09
|
496b
|
19 lines
onClipEvent(enterFrame){
if(_rotation > 180)
{
_Y = _Y - spd * Math.cos(0.017453292519943295 * _rotation);
_X = _X + spd * Math.sin(0.017453292519943295 * _rotation);
}
else
{
_Y = _Y + spd * Math.cos(0.017453292519943295 * _rotation);
_X = _X - spd * Math.sin(0.017453292519943295 * _rotation);
}
this._alpha -= 2;
if(this._alpha < 0)
{
this.swapDepths(_root.getNextHighestDepth());
this.removeMovieClip();
}
}